 //
//  HSStartGifViewController.m
//  HSTS
//
//  Created by simon on 2017/1/23.
//  Copyright © 2017年 simon. All rights reserved.
//

#import "HSStartGifViewController.h"
#import "UIImage+animationGIF.h"
@interface HSStartGifViewController ()

@end

@implementation HSStartGifViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismiss:)];
    [self.view addGestureRecognizer:tap];
    self.view.backgroundColor = [UIColor clearColor];
    [self.gifImgView setImage:[UIImage animatedImageWithAnimatedGIFURL:[[NSBundle mainBundle] URLForResource:@"loading.gif" withExtension:nil]]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
}

-(void)dismiss:(UITapGestureRecognizer*)recognizer
{
    [[AppWindow appWindow] hiddenGifImg];
}
@end
